From 950155bbeae847595faf4c0da0466540b843a3e8 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 28 Jan 2024 18:58:00 -0800
Subject: feat(badges): rate limited message

---
 src/routes/user/[user]/badges/+page.svelte | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'src/routes/user/[user]/badges/+page.svelte')

diff --git a/src/routes/user/[user]/badges/+page.svelte b/src/routes/user/[user]/badges/+page.svelte
index e41d294c..551efaf5 100644
--- a/src/routes/user/[user]/badges/+page.svelte
+++ b/src/routes/user/[user]/badges/+page.svelte
@@ -12,6 +12,7 @@
 	import cdn from '$lib/Utility/cdn.js';
 	import locale from '$stores/locale.js';
 	import Skeleton from '$lib/Skeleton.svelte';
+	import RateLimited from '$lib/Error/RateLimited.svelte';
 	// import { io } from 'socket.io-client';
 
 	export let data;
@@ -519,6 +520,14 @@
 		{:catch}
 			<div class="card">Could not fetch badges</div>
 		{/await}
+	{:catch}
+		<RateLimited
+			type="Profile"
+			list={false}
+			might={false}
+			loginSessionError={false}
+			contact={false}
+		/>
 	{/await}
 {/if}
 
-- 
cgit v1.2.3

